package com.shopoo.behavior.app.converter;

import com.shopoo.behavior.dto.clientobject.BehaviorLikeCO;
import com.shopoo.behavior.dto.clientobject.BehaviorShareCO;
import com.shopoo.behavior.dto.cqe.BehaviorLikeAddCmd;
import com.shopoo.behavior.dto.cqe.BehaviorLikeCancelCmd;
import com.shopoo.behavior.dto.cqe.BehaviorReadAddCmd;
import com.shopoo.behavior.dto.cqe.BehaviorReadReadCmd;
import com.shopoo.behavior.dto.cqe.BehaviorShareAddCmd;
import com.shopoo.behavior.infrastructure.database.dataobject.TBehaviorLike;
import com.shopoo.behavior.infrastructure.database.dataobject.TBehaviorRead;
import com.shopoo.behavior.infrastructure.database.dataobject.TBehaviorShare;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 *
 * @Author <a href="mailto:android_li@sina.cn">MaoYuan.Li</a>
 * @Date 2022/3/26 11:05 PM
 */
@Mapper
public interface AppConverter {

	AppConverter INSTANCE = Mappers.getMapper(AppConverter.class);

	TBehaviorLike toTBehaviorLike(BehaviorLikeAddCmd behaviorLikeAddCmd);
	TBehaviorLike toTBehaviorLike(BehaviorLikeCancelCmd behaviorLikeCancelCmd);
	BehaviorLikeCO toBehaviorLikeCO(TBehaviorLike tBehaviorLike);

	TBehaviorRead toTBehaviorRead(BehaviorReadAddCmd behaviorReadAddCmd);
	TBehaviorRead toTBehaviorRead(BehaviorReadReadCmd behaviorReadReadCmd);

	TBehaviorShare toTBehaviorShare(BehaviorShareAddCmd behaviorShareAddCmd);
	BehaviorShareCO toBehaviorShareCO(TBehaviorShare tBehaviorShare);
}
